<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>我的收藏</title>
    <link rel="stylesheet" type="text/css" href="../css/base.css">
    <link rel="stylesheet" href="../css/css3.css">
    <!--<link rel="stylesheet" href="css/css2.css">-->
    <script src="../js/jquery.1.7.2.js"></script>
    <script src="../js/jquery.page.js"></script>
    <script src="../js/side.js"></script>
    <script src="../js/base.js"></script>
</head>

<body>
<!-- header -->
<#include "../common/person_header.ftl">
<!-- e header -->
<!-- main -->
<div class="main">
    <div class="wrap">
        <div class="address">
            <a href="/search_result">首页</a>>我的收藏
        </div>
        <div class="group clearfix">
            <div class="collectSide fl">
                <div class="topper">
                    <i class="set"></i>
                    <img src="${user.imgUrl}" alt="" class="pic">
                    <div class="name">${user.name}</div>
                </div>
                <ul class="nav">
                    <li class="on"><a href="/person_collect"><i class="icon-1"></i>我的收藏</a></li>
                    <li><a href="/person_down"><i class="icon-2"></i>我的下载</a></li>
                    <li><a href="/person_setting"><i class="icon-4"></i>帐号设置</a></li>
                </ul>
            </div>
            <div class="mainbd2 Collect fr">
                <div class="topper">
                    <h2 class="fs16">我的收藏</h2>
                    <a href="/empty_collect"><i class="btn clearClollect">清空收藏</i></a>
                </div>
                <div class="bd">
                    <ul class="list4">
					<#list collections as collection>
                        <li>
                            <div class="title"><a href="">${collection.title}</a></div>
                            <a href="/delete_collect?id=${collection.id}"><div class="cancel">取消收藏</div></a>
                            <div class="data"><span>${collection.address}</span><span class="time">${collection.createTime}</span></div>
                            <div class="info">${collection.digest}</div>
                        </li>
					</#list>

                    </ul>
                    <div class="page3">
                    </div>
                    <script>
                        $(".page3").createPage({
                            pageCount:${pageTotal},
                            current:${page}+1,
                            backFn:function(p){
                                p = p-1;
                                window.location.href="/person_collect?page=" + p;
                            }
                        });
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- e main -->
<!-- footer -->
<#include "../common/footer.ftl">
<!-- e footer -->


</body>
</html>